package cn.jlkj22.csmallproductteachers.mapper;

import cn.jlkj22.csmallproductteachers.pojo.entity.Album;
import cn.jlkj22.csmallproductteachers.pojo.vo.AlbumListItemVO;
import cn.jlkj22.csmallproductteachers.pojo.vo.AlbumStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AlbumMapper {
    int insert(Album album);
    /**
     * 根据id删除相册数据
     *
     * @param id 尝试删除的相册的id
     * @return 受影响的行数
     */
    int deleteById(Long id);
    int deleteByIds(Long[] ids);
    int insertBatch(List<Album> albumList);
    int update(Album album);
    int count();
    AlbumStandardVO getStandardById(Long id);
    List<AlbumListItemVO> list();
    int countByName(String name);
}
